<?php
class System_TemplateController extends Promotor_Controller_Action_Scaffold {
	
	public $skin = array(
		// forsuje domyslny template i style na admin
		'template' => 'admin',
		'style' => 'default',
		// layout
		'layout' => 'admin_template',
		// rozszerzam konfiguracje
		'config' => array(
			'filename' => 'backend_config.ini'
		)
	);

	public $acl = array(
		'index' => 'list',
		'list' => 'list',
		'add' => 'create',
		'edit' => 'update',
		'delete' => 'delete',
		'template' => 'list',
		'styles' => 'list'
	);

	/**
	 * @see Promotor_Controller_Action_Scaffold specialization
	 */
	protected $_modelClass = 'System_Model_Template';
	protected $_formAddClass = 'System_Form_TemplateAdd';
	protected $_formEditClass = 'System_Form_TemplateEdit';
	protected $_formRemoveClass = 'System_Form_TemplateRemove';
	
	protected $_editPostObservableName = 'system_template_edit_post';
	protected $_deletePostObservableName = 'system_template_delete_post';
	
	
	public function indexAction() {
		$this->_forward('list');
	}	
}